package com.vegetable.modules.entity.baseData.po;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(value = "基础查询参数", description = "基础查询参数")
public class BaseQueryPO {
    
    @ApiModelProperty("页码")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long page = 1L;
    
    @ApiModelProperty("每页条数")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long limit = 10L;
    
    @ApiModelProperty("排序字段")
    private String sort;
    
    @ApiModelProperty("排序方式 asc/desc")
    private String order;
}